* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  display: block;
}

img {
  width: 100%;
  display: block;
}

input {
  outline: none;
  border: none;
}

button {
  outline: none;
  border: none;
}

.clearfix::before, .clearfix::after {
  content: "";
  display: block;
  clear: both;
  height: 0;
  line-height: 0;
  visibility: hidden;
}


em,i,b{
  font-style: normal;
}

/* 头部 */
.top {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #f4483e;
  display: flex;
  justify-content: space-between;
  padding: 5px 15px;
  color: #fff;
  .back {
    background: url("../images/icon_bar.png");
    span {
      font-weight: 200;
      font-size: 32px;
    }
  }
  p {
    padding: 7px 0 5px 0;
  }
  .top-app {
    img {
      width: 34px;
    }
  }
}

/* 导航 */

nav {
  width: 100%;
  overflow: hidden;
  position: fixed;
  top:44px;
  width: 100%;
  background-color: #fff;
  .nav {
    display: flex;
    width: 245%;
    justify-content: space-around;
    >a {
      color: #666; 
      text-align: center;
      padding: 5px 0;
    }
    >a:hover,a:focus{
      border-bottom: 2px solid #fd1d1d;
    }
  }
}

/* 商品列表 */
.list {
  margin-top: 80px;
  background-color: #f7f7f7;
  padding-top: 5px;
  padding-bottom: 90px;
  .goods {
    display: flex;
    background-color: #fff;
    padding: 10px 5px;
    margin-bottom: 5px;
    .g-img {
      img {
        width: 130px;
        height: 130px;
        border: none;
      }
    }
    .ifo {
      display: flex;
      flex: 1;
      flex-direction: column;
      justify-content: space-between;
      padding-left: 5px;
      .name {
        font-size: 14px;
        padding-right: 20px;
      }
      .price {
        color: #f4483e;
        font-size: 24px;
        i{
          font-size: 16px;
          padding-right: 3px;
        }
        em {
          font-size: 12px;
          padding-right: 2px;
        }
        del {
          color: #999;
          font-size: 14px;
          padding-left: 10px;
        }
      }
      .bar{
        font-size: 12px;
        i{
          width: 82px;
          height: 14px;
          line-height: 14px;
          border: 1px solid #fc353a;
          border-radius: 6px;
          color: #fff;
          font-weight: 900;
          background: #ffb7b7;
          text-align: center;
          overflow: hidden;
          display: inline-block;
        }
        b{
          color: #f4483e;
          padding-left: 10px;
        }
      }
      .link {
        padding-right: 5px;
        a{
          font-size: 12px;
          padding: 3px;
        }
        a:nth-child(1){
          float: left;
          border: 1px dashed #f4483e;
          color: #f4483e; 
        }
        a:nth-child(2){
          float: right;
          background-color: #ff5e5d;
          color: #fff;
          border-radius: 5px;
        }
      }
    }
  }
}

/* 底部 */
footer{
  position: fixed;
  width: 100%;
  bottom: 0;
  background-color: #efefef;
  .arr-up {
    width: 38px;
    height: 38px;
    text-align: center;
    background-color: #787878;
    border-radius: 50%;
    position: absolute;
    right: 4px;
    top: 25px;
    line-height: 38px;
    a{
      font-size: 20px; 
      color: #9d9d9d;
    }
  }
  .links{
    display: flex;
    text-align: center;
    font-size: 14px;
    a{
      flex: 1;
      padding: 6px 0;
      border: 1px solid #d6d6d6;
      background-color: #efefef;
      border-left: none;
    }
    a:last-child{
      border-right: none;
    }
  }
  .tool{
    font-size: 12px;
    padding: 10px 0;
    p:nth-child(1){
      display: flex;
      justify-content: center;
      a:nth-child(1){
        color:#fd1d1d;
      }
      a:nth-child(3){
        color: #6e6e6e;
      }
    }
    p:nth-child(2){
      text-align: center;
      a{
        color: #6e6e6e;
      }
    }
  }
}